package com.yzz.composeweatherproject.activity.viewpager2

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.viewpager2.widget.ViewPager2
import com.yzz.composeweatherproject.R

class ViewPagerActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_view_pager)
        val viewPager2 = findViewById<ViewPager2>(R.id.mVpView)
        viewPager2?.adapter =
            ViewpagerAdapter(this, arrayListOf("1123", "asdasd", "asdwqd", "asdasd"))
    }
}